package com.iven.xie.es.entity.doc;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 数据实体
 *
 * @author iven.xie
 * @version 1.0
 * @date 2020/02/28 18:15
 */
@Data
public class ProductDocument implements Serializable {

    @ApiModelProperty(name = "id")
    private String id;
    @ApiModelProperty(name = "productName")
    private String productName;
    @ApiModelProperty(name = "productDesc")
    private String productDesc;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "createTime")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "createTime")
    private Date updateTime;

}
